package com.itkk;

public class Student{

    private String id;
    private String name;
    private String sex;
    private String age;
    private String major;
    private String chooseCourse;
    private String grade;


    public Student(String id, String name, String sex, String age, String major, String chooseCourse, String grade) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.major = major;
        this.chooseCourse = chooseCourse;
        this.grade = grade;
    }

    public Student() {
    }

    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getChooseCourse() {
        return chooseCourse;
    }

    public void setChooseCourse(String chooseCourse) {
        this.chooseCourse = chooseCourse;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public void chooseCourse(){
        System.out.println("学生"+name+"选择"+ Course.getCourseName());
    }

    public void dropCourse(){
        System.out.println("学生"+name+"退选"+ Course.getCourseName());
    }
}
